package com.swh.dao;


import com.swh.dao.base.BaseDao;
import com.swh.entity.QualificationCondition;
import com.swh.entity.WorkOrder;
import com.swh.entity.WorkOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface WorkOrderDao extends BaseDao<WorkOrder> {
    @Override
    int insert(WorkOrder appVersion);

    @Override
    int delete(int id);

    @Override
    int update(WorkOrder appVersion);

    @Override
    WorkOrder load(int id);

    @Override
    List<WorkOrder> pageList(int pageNum, int pageSize);

    @Override
    int pageListCount(int offset, int pageSize);

    List<Map> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize,
                             @Param("condition") QualificationCondition condition);


    Map<String,Object> findCompanyByOrder(@Param("orderId") int orderId);

    List<HashMap> findWasteDetailByOrder(@Param("orderId") int orderId);

//    Map<String,Object> selectById(@Param("id") Integer id);
//
//    List<Map<String,Object>> selectById1(@Param("id") Integer id);
//
//    List<Map<String,Object>> selectById2(@Param("id") Integer id);



}